﻿Imports System.Collections.Generic
Imports System.Xml.Serialization

Namespace roncliProductions.LibWowArmory.ItemSearchSchema

    Public Class searchResults

        Private intPageCount As Integer
        Private intPageCurrent As Integer
        Private strSearchError As String
        Private strSearchFilter As String
        Private strSearchMsg As String
        Private strSearchText As String
        Private strSearchType As String
        Private strURL As String
        Private strVersion As String
        Private fFilters As New List(Of filters)
        Private fcFilterColumns As New List(Of filterColumns)
        Private iItems As New List(Of items)

        <XmlAttribute()> Public Property pageCount() As Integer
            Get
                Return intPageCount
            End Get
            Set(ByVal value As Integer)
                intPageCount = value
            End Set
        End Property

        <XmlAttribute()> Public Property pageCurrent() As Integer
            Get
                Return intPageCurrent
            End Get
            Set(ByVal value As Integer)
                intPageCurrent = value
            End Set
        End Property

        <XmlAttribute()> Public Property searchError() As String
            Get
                Return strSearchError
            End Get
            Set(ByVal value As String)
                strSearchError = value
            End Set
        End Property

        <XmlAttribute()> Public Property searchFilter() As String
            Get
                Return strSearchFilter
            End Get
            Set(ByVal value As String)
                strSearchFilter = value
            End Set
        End Property

        <XmlAttribute()> Public Property searchMsg() As String
            Get
                Return strSearchMsg
            End Get
            Set(ByVal value As String)
                strSearchMsg = value
            End Set
        End Property

        <XmlAttribute()> Public Property searchText() As String
            Get
                Return strSearchText
            End Get
            Set(ByVal value As String)
                strSearchText = value
            End Set
        End Property

        <XmlAttribute()> Public Property searchType() As String
            Get
                Return strSearchType
            End Get
            Set(ByVal value As String)
                strSearchType = value
            End Set
        End Property

        <XmlAttribute()> Public Property url() As String
            Get
                Return strURL
            End Get
            Set(ByVal value As String)
                strURL = value
            End Set
        End Property

        <XmlAttribute()> Public Property version() As String
            Get
                Return strVersion
            End Get
            Set(ByVal value As String)
                strVersion = value
            End Set
        End Property

        <XmlElement()> Public Property filters() As List(Of filters)
            Get
                Return fFilters
            End Get
            Set(ByVal value As List(Of filters))
                fFilters = value
            End Set
        End Property

        <XmlElement()> Public Property filterColumns() As List(Of filterColumns)
            Get
                Return fcFilterColumns
            End Get
            Set(ByVal value As List(Of filterColumns))
                fcFilterColumns = value
            End Set
        End Property

        <XmlElement()> Public Property items() As List(Of items)
            Get
                Return iItems
            End Get
            Set(ByVal value As List(Of items))
                iItems = value
            End Set
        End Property

    End Class

End Namespace